<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>缓存刷新</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- 确保适当的绘制和触屏缩放 -->
    <link rel="stylesheet" href="{$url_css}bootstrap.min.css" type="text/css">
    <link rel="stylesheet" href="{$url_css}admin.css" type="text/css">
    <script type="text/javascript" src="{$url_js}jquery-1.12.0.min.js"></script>
</head>
<body>

<div class="container" style="width:96%">
    <table class="table table-bordered table-striped" align="center">
        <tbody>
        <tr>
            <td class="col-xs-1 vc" colspan="2">缓存刷新</td>
        </tr>
        <tr>
            <td width="50">URL</td>
            <td width="90%">
                <textarea class="form-control" id="url" style="width: 700px;height: 160px"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="2"><input id="add_url" type="button" class="btn btn-default" value="提交"></td>
        </tr>
        </tbody>
    </table>
</div>

{literal}
    <script type="text/javascript">
        $("#add_url").click(function () {
            var urls = $('#url').val();
            $.ajax({
                url: 'cacherefresh.php?do=Default',
                type: 'POST',
                data: {url: urls},
                dataType: 'json',
                success: function (re) {
                    top.swal(re, function () {
                        if(re.type == 'success'){
                            self.location.reload();
                        }
                    });
                }
            });
        });
    </script>
{/literal}
</body>
</html>